<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>创新创业教师管理系统</title>
	<link rel="stylesheet" type="text/css" href="style/all.css">
	<script type="text/javascript" src="js/jquery-1.8.3.min.js"></script>
	<script type="text/javascript" src="js/main.js"></script>
	<!-- 字体图标 -->
	<script src="plug/font/iconfont.js"></script>
</head>
<body class="bg_i">
	<!-- 顶部 -->
	<div class="header">
		<div class="head">
			<img src="./images/school.jpg" alt="logo">
			<span class="logo">创新创业教师管理系统</span>
			<div class="nav">
				<a href="javascrpt:;" class="home">
					<svg class="icon" aria-hidden="true">
						<use xlink:href="#icon-riqi"></use>
					</svg>
					2017.09.01
				</a>
				<div class="home email">
					<svg class="icon" aria-hidden="true">
						<use xlink:href="#icon-seeusero"></use>
					</svg>
					<span>王老师</span>
					<div class="e_list">
						<div class="tran"></div>
						<div class="tran_g"></div>
						<ul>
							<li><a href="user_T.html">修改密码</a></li>
							<li><a href="javascript:;">清除缓存</a></li>
							<li><a href="login.html">退出</a></li>
						</ul>
					</div>
				</div>
				<!-- 邮件 -->
				<div class="home email">
					<svg class="icon" aria-hidden="true">
						<use xlink:href="#icon-email"></use>
					</svg>
					<span class="num">2</span>
					<div class="e_list">
						<div class="tran"></div>
						<div class="tran_g"></div>
						<ul>
							<li><a href="index_T.html">与我相关</a></li>
						</ul>
					</div>
				</div>
				<a href="login.html" class="home email">
					<svg class="icon" aria-hidden="true">
						<use xlink:href="#icon-tuichu-copy"></use>
					</svg>
					<span>退出</span>
				</a>
			</div>
		</div>
	</div>
	<!-- 主体 -->
	<div class="container_i">
		<!-- 左边侧边栏 -->
		<div class="left">
			<div class="navbox">
				<div class="title">菜单中心</div>
				<ul class="nav">
					<li><a href="student_item_T.html">个人信息</a></li>
					<li><a href="index_T.html">通知消息</a></li>
					<li><a href="creation_info_T.html">创业信息</a></li>
					<li><a href="item_manage_T.html" class="hover">项目管理</a></li>
					<li><a href="user_T.html">用户管理</a></li>
					<li><a href="login.html">退出</a></li>
				</ul>
			</div>
		</div>
		<!-- 右边侧边栏 -->
		<div class="right">
			<!-- 个人信息部分 -->
			<div class="item">
				<div class="btn">
					<span class="span_t">项目管理</span>
					<div class="search">
						<input type="text" placeholder="搜索">
						<span></span>
					</div>
				</div>
				<table border="1" class="item_m">
					<th style="width:50px;">序号</th>
					<th  style="width:300px;">项目名称</th>
					<th>负责人</th>
					<th>操作</th>
					<tr class="no_company" style="display:none;">
						<td colspan="5">无</td>
					</tr>
					<tr>
						<td>1</td>
						<td><a href="item_detail_T.html">自主研发的智能花盆市场化</a></td>
						<td><a href="student_info.html">王小白</a></td>
						<td>
							<button class="report applicate">已通过</button>
							<button class="change"><a href="item_detail_T.html">详情</a></button>
							<button class="delete">删除</button>
						</td>
					</tr>
					<tr>
						<td>2</td>
						<td><a href="item_detail">自主研发的智能花盆市场化</a></td>
						<td>王小白</td>
						<td>
							<button class="report yes">通过</button>
							<button class="report not">不通过</button>
							<button class="change">详情</button>
							<button class="delete">删除</button>
						</td>
					</tr>
				</table>
			</div>
		</div>
		<div class="clear"></div>
	</div>
	<!-- 回到顶部 -->
	<div class="toTop"><span>↑</span>顶部</div>
	<script type="text/javascript">
	$(function(){
		$(".report").click(function(){
			if(! $(this).hasClass("applicate")){
				$(this).html("已通过").addClass("applicate");
				if($(this).hasClass("not")){
					$(this).html("不通过");
					$(".yes").hide();
				}else{
					$(".not").hide();
				}
			}
		})

		// 判断是否需要显示无
		var num = $(".item_m").find("tr").size();
		if(num<3){
			$(".no_company").show();
		}

		// 删除相应的行
		$(".delete").click(function(){
			$(this).parent().parent().remove();
			// 判断是否需要显示无
			var num = $(".item_m").find("tr").size();
			if(num<3){
				$(".no_company").show();
			}
		})
	})
	</script>
</body>
</html>